package com.puti.doctor.service.impl;

import java.util.List;

import com.puti.doctor.domian.GoodsMarketing;
import com.puti.doctor.mapper.GoodsMarketingMapper;
import com.puti.doctor.service.IGoodsMarketingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 商品营销 商品营销Service业务层处理
 *
 * @author puti
 * @date 2021-04-25
 */
@Service
public class GoodsMarketingServiceImpl implements IGoodsMarketingService
{
    @Autowired
    private GoodsMarketingMapper goodsMarketingMapper;

    /**
     * 查询商品营销 商品营销
     *
     * @param marketingId 商品营销 商品营销ID
     * @return 商品营销 商品营销
     */
    @Override
    public GoodsMarketing selectGoodsMarketingById(Long marketingId)
    {
        return goodsMarketingMapper.selectGoodsMarketingById(marketingId);
    }

    /**
     * 查询商品营销 商品营销列表
     *
     * @param goodsMarketing 商品营销 商品营销
     * @return 商品营销 商品营销
     */
    @Override
    public List<GoodsMarketing> selectGoodsMarketingList(GoodsMarketing goodsMarketing)
    {
        return goodsMarketingMapper.selectGoodsMarketingList(goodsMarketing);
    }

    /**
     * 新增商品营销 商品营销
     *
     * @param goodsMarketing 商品营销 商品营销
     * @return 结果
     */
    @Override
    public int insertGoodsMarketing(GoodsMarketing goodsMarketing)
    {
        return goodsMarketingMapper.insertGoodsMarketing(goodsMarketing);
    }

    /**
     * 修改商品营销 商品营销
     *
     * @param goodsMarketing 商品营销 商品营销
     * @return 结果
     */
    @Override
    public int updateGoodsMarketing(GoodsMarketing goodsMarketing)
    {
        return goodsMarketingMapper.updateGoodsMarketing(goodsMarketing);
    }

    /**
     * 批量删除商品营销 商品营销
     *
     * @param marketingIds 需要删除的商品营销 商品营销ID
     * @return 结果
     */
    @Override
    public int deleteGoodsMarketingByIds(Long[] marketingIds)
    {
        return goodsMarketingMapper.deleteGoodsMarketingByIds(marketingIds);
    }

    /**
     * 删除商品营销 商品营销信息
     *
     * @param marketingId 商品营销 商品营销ID
     * @return 结果
     */
    @Override
    public int deleteGoodsMarketingById(Long marketingId)
    {
        return goodsMarketingMapper.deleteGoodsMarketingById(marketingId);
    }

    @Override
    public List<GoodsMarketing> selectMarketing(GoodsMarketing goodsMarketing) {
        return goodsMarketingMapper.selectMarketing(goodsMarketing);
    }

    @Override
    public List<GoodsMarketing> selectGoodsMarketing(GoodsMarketing goodsMarketing) {
        return goodsMarketingMapper.selectGoodsMarketing(goodsMarketing);
    }
}
